<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        let person = {name:'zhangsan', age:2}

        /*----------浅拷贝---------------*/
        let person2 = person

        /*----------深拷贝---------------*/
        let personne3 = JSON.parse(JSON.stringify(person))
    </script>
</head>
<body>
    
</body>
</html>